package two_xia.ex9.Demo01;

public class Yingzhang extends Officer {

    private Officer nextOfficer;

    public Yingzhang() {
    }

    public Yingzhang(Officer nextOfficer) {
        this.nextOfficer = nextOfficer;
    }

    @Override
    public void action(Mission mission) {
        if (mission.getEnemy() >= 200) {
            //nextOfficer.action(mission);
            System.out.println("暂无更高等级,开会讨论作战命令!");
        } else {
            System.out.println("营长下达作战命令!");
        }
    }
}
